// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// 入口文件
import Vue from 'vue'
import App from './App'
import router from './router'
import VueResource from 'vue-resource'
// // 导入mint-UI
// import MintUI from 'mint-ui'
// // 这里可以省略 node-modules 这层目录
// import 'mint-ui/lib/style.css'

// // 将MinUI安装到VUE中 把所有组件注册为全局组件
// Vue.use(MintUI)
// 引入mui
import './lib/mui/css/mui.min.css'

import './lib/mui/css/icons-extra.css'

// 按需导入
import { Header, Swipe, SwipeItem } from 'mint-ui'
// 使用Vue.componrnt 注册按钮组件
Vue.component(Header.name, Header)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.use(VueResource)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
